package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the backlog database table.
 * 
 */
@Entity
@NamedQuery(name="Backlog.findAll", query="SELECT b FROM Backlog b")
public class Backlog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="bac_id")
	private int bacId;

	@Column(name="bac_annex")
	private int bacAnnex;

	@Temporal(TemporalType.DATE)
	@Column(name="bac_date")
	private Date bacDate;

	@Column(name="bac_describe")
	private String bacDescribe;

	@Column(name="bac_state")
	private int bacState;

	@Column(name="bac_type")
	private int bacType;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Linkman
	@ManyToOne
	@JoinColumn(name="lin_id")
	private Linkman linkman;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;

	public Backlog() {
	}

	public int getBacId() {
		return this.bacId;
	}

	public void setBacId(int bacId) {
		this.bacId = bacId;
	}

	public int getBacAnnex() {
		return this.bacAnnex;
	}

	public void setBacAnnex(int bacAnnex) {
		this.bacAnnex = bacAnnex;
	}

	public Date getBacDate() {
		return this.bacDate;
	}

	public void setBacDate(Date bacDate) {
		this.bacDate = bacDate;
	}

	public String getBacDescribe() {
		return this.bacDescribe;
	}

	public void setBacDescribe(String bacDescribe) {
		this.bacDescribe = bacDescribe;
	}

	public int getBacState() {
		return this.bacState;
	}

	public void setBacState(int bacState) {
		this.bacState = bacState;
	}

	public int getBacType() {
		return this.bacType;
	}

	public void setBacType(int bacType) {
		this.bacType = bacType;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Linkman getLinkman() {
		return this.linkman;
	}

	public void setLinkman(Linkman linkman) {
		this.linkman = linkman;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}